home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000136_amos-request@svcs1.digex.net_Fri Mar 13 11:02:16 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
3KB
|
93 lines
>From amos-request@svcs1.digex.net Fri Mar 13 11:02:16 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id LAA20665
for <mcox@access.digex.net>; Fri, 13 Mar 1998 11:02:16 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id JAA29300
for amos-out; Fri, 13 Mar 1998 09:28:44 -0500 (EST)
Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA29297
for <amos-list@svcs1.digex.net>; Fri, 13 Mar 1998 09:28:43 -0500 (EST)
Received: from sunny.bahnhof.se (sunny.bahnhof.se [193.44.91.1])
by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA21991
for <amos-list@access.digex.net>; Fri, 13 Mar 1998 09:28:42 -0500 (EST)
Received: from pm1-53.bahnhof.se (jonasth@pm1-53.bahnhof.se [193.44.91.117])
by sunny.bahnhof.se (8.8.8/8.8.8) with SMTP id PAA09873
for <amos-list@access.digex.net>; Fri, 13 Mar 1998 15:10:46 +0100 (MET)
Date: 13 Mar 98 15:08:15 +0100
From: "Jonas Thorell" <jonasth@bahnhof.se>
Subject: Re: extension?
To: "Garfield Benjamin" <amos-list@access.digex.net>
In-Reply-To: <B0000232338@mailhost.sosbbs.com>
Message-ID: <1907.376T767T9082936@bahnhof.se>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-System: Amiga 1200/030@50 Mhz, 34 Meg, 1.5 Gig HD, 28k8
X-Software: Aweb, Miami, Thor
X-Misc-info: Who's reading this??
X-Mailer: THOR 2.5a (Amiga;TCP/IP)
Status: O
X-Status:
Garfield Benjamin (gbenjam@sosbbs.com) wrote:
>> If AGE<10
>> Print "You are less than 10 years old."
>> else if AGE=21
>> Print "Hey!! Now you can drink alcohol in the U.S.!!"
>> else
>> Print "WOW, you're OVER 21!!"
>> endif
>> Smallest, and tidiest in my humble opinion.
>> Is my approach good enough in the meantime?
> Well, problem is this won't work.
Yes it will. I tried it.
>First, you need to match every If with an End If and second, the logic is not
>the same.
Both. If and endif is coupled the same way as select ... case ... endselect
is so I can't see the problem. The logic is the same too. Select..is just
more advanced in that it offers some extra features.
>If AGE<10
> Print "You are less than 10 years old."
>Else If AGE=21
> Print"Hey!! Now you can drink alcohol in the U.S.!!"
> Else If AGE>21
> Print "WOW, you'r OVER 21!!"
> End If
> End If
>End If
That would trigger the error-system. One if and three end-ifs is plain
wrong.
> That being said, this might be a bit clearer (arguably the "best"
> method for AMOS) but it still lacks when compared to the
> Select...Case style. Anyway, the point is you are still looking at
> the same two basic methods, the If...End If and the If...Else...EndIf
Yes but does it really matter? The result is what is importand and the
if...
else if ...
else
end if
structure is quite close to the select.. syntax.
---
Look at the shoes you're filling, look at the blood we're spilling
Look at the world we're killing, the way we've always done before
Look at the doubt we've wallowed, look at the leaders we've followed
Look at the lies we've swallowed and I don't wanna hear no more
---
Create the impression that you have already reached your level of incompetence.